﻿
@{
    Layout = null;
}
@model Yyyg.WebUI.Models.RobsDetVM

<div id="laypanel-myrobs">
    <div class="d1">
        <p class="blk-tit">商品详情:</p>
        <div class="info">
            <div class="about">
                <div class="dl">
                    <a href="/home/goodabout?rhid=@Model.RushID">
                        <img class="gdimg" src="@Model.GdSrc" />
                    </a>
                </div>
                <div class="dr minfont">
                    <p class="gdtit minfont">(第@(Model.PerNum)期)@(Model.Title)</p>
                    <p class="join">已参与@(Model.ByCount)人次</p>
                    @if (Model.Status == 0)
                    {
                        <p class="status" style="color:limegreen">正在夺宝中...</p>
                    }
                    else
                    {
                        <p class="status" style="color:red">已揭晓</p>
                    }
                </div>
            </div>
            <div class="progbarbox">
                <div class="circleProgbar" title="中奖率" bar-width="10" style="width:80px;height:80px;margin-right:10px;" value="@Tools.CalcPercentage(Model.ByCount,Model.AllNeed)"></div>
            </div>
        </div>
    </div>
    <div class="d2">
        <p class="blk-tit">我的云购码:</p>
        @if (Model.Robs.Count > 0)
        {
            <ul class="robs">

                @foreach (var item in Model.Robs)
                {
                    if (item.Item1 == item.Item2)
                    {
                        <li class="item">@item.Item1</li>
                    }
                    else
                    {
                        <li class="item">@(item.Item1)~@(item.Item2)</li>
                    }
                }
            </ul>
        }
        else
        {
            <div class="nohave" text="尚未参加该期夺宝"></div>
        }
    </div>
</div>
